#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>

#define MaxSize 100
typedef struct SqList{
    int data[MaxSize];
    int length;
}SqList;

void randList(SqList *L);

int main(){
    SqList L;
    randList(&L);
    for(int i=0;i<20;i++){
        printf("%d\n", L.data[i]);
    }
    return 0;
}

void randList(SqList *L){
    L->length = 20;
    int l = 0;
    int r = 19;
    for(int i=0;i<20;i++){
        int temp = rand()%100;
        if(temp<50){
            L->data[l++] = temp;
        }else{
            L->data[r--] = temp;
        }
    }
}